Skip to content

docs: add "safe" tag to V2 API documentation#13051

Merged
BigLep merged 12 commits intomasterfrom
docs/v2-api-safe-tag
Apr 24, 2025
Merged

docs: add "safe" tag to V2 API documentation#13051
BigLep merged 12 commits intomasterfrom
docs/v2-api-safe-tag

Conversation

@BigLep
Copy link
Copy Markdown
Member

@BigLep BigLep commented Apr 22, 2025

Adds documentation for the new "safe" tag introduced in PR #13034. I didn't push these changes directly to https://filoznotebook.notion.site/Filecoin-V2-APIs-1d0dc41950c1808b914de5966d501658 because I wanted to get review (and setup a process for easier review of future changes).

The first commit is what Notion exports. I mostly used Claude Code to generate the changes after that. I pointed it at #13034 and https://github.com/filecoin-project/lotus/blob/3c5aaee7ddeac4c32b8ecdce00c1f5a5d5c0981d/documentation/en/api-v2-unstable-methods.md and asked to get updates accounting for the "safe" tag. I noticed at different points that Claude and Gemini would try and do other Markdown cleanup. I tried to get that separated into separate commits.

To make this quicker to update in the future, I started a CLAUDE.me file where we can give context.

After Claude Code was done, I fed the results to Google AI Studio with Gemini 2.5 Pro since from my quick checking it was looking to provide even better results. I did some curation of its changes, but that is the last commit. We can reject those changes if they feel too drastic.

I also found it useful to generate/update a table of contents as I was going along so I could structurally check/see what was being added. (This is currently a manual step to update the table of contents (i.e., ask LLM to do it). I don't have any scripting or tooling doing it automatically.)

If/when this gets approved, I'd plan on manually copying the merged content back to https://filoznotebook.notion.site/Filecoin-V2-APIs-1d0dc41950c1808b914de5966d501658 for now.

@github-project-automation github-project-automation Bot moved this to 📌 Triage in FilOz Apr 22, 2025
@BigLep BigLep added this to F3 Apr 22, 2025
@BigLep BigLep self-assigned this Apr 22, 2025
@BigLep BigLep moved this to In review in F3 Apr 22, 2025
@BigLep
Copy link
Copy Markdown
Member Author

BigLep commented Apr 22, 2025

@masih or @Kubuxu : I think this is relevant for you to review. I think the commits are pretty cleanly separated.

Most useful to look at:

  • Claude changes for adding safe tag docs: 335a0a2
  • Gemini changes/improvements on top (but feel free to reject these): 41c8087

@BigLep BigLep marked this pull request as ready for review April 22, 2025 20:17
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-project-automation github-project-automation Bot moved this from In review to In progress in F3 Apr 22, 2025
@github-project-automation github-project-automation Bot moved this from 📌 Triage to ⌨️ In Progress in FilOz Apr 22, 2025
@masih masih changed the title docs: Add "safe" tag to V2 API documentation docs: add "safe" tag to V2 API documentation Apr 22, 2025
@github-actions github-actions Bot dismissed their stale review April 22, 2025 20:23

PR title now matches the required format.

@BigLep BigLep moved this from In progress to In review in F3 Apr 22, 2025
Comment thread build/parameters.go Outdated
Comment thread documentation/en/api-experimental-user-facing-v2-docs/api-v2-experimental.md Outdated
@github-project-automation github-project-automation Bot moved this from ⌨️ In Progress to ✔️ Approved by reviewer in FilOz Apr 23, 2025
Comment thread documentation/en/api-experimental-user-facing-v2-docs/api-v2-experimental.md Outdated
Comment thread documentation/en/api-experimental-user-facing-v2-docs/api-v2-experimental.md Outdated
@Kubuxu
Copy link
Copy Markdown
Contributor

Kubuxu commented Apr 23, 2025

GitHub has it's own ToC system (a button in top right of any markdown file opened in rich mode).
Another option would be using something like markdown ToC generator which exist, I guess LLM workflow works as well 🤣

@BigLep BigLep added the skip/changelog This change does not require CHANGELOG.md update label Apr 24, 2025
@BigLep
Copy link
Copy Markdown
Member Author

BigLep commented Apr 24, 2025

GitHub has it's own ToC system (a button in top right of any markdown file opened in rich mode). Another option would be using something like markdown ToC generator which exist, I guess LLM workflow works as well 🤣

Yeah, agreed. I made more comments about the purpose of having he ToC in the doc. It is only to help with reviewing structural changes. When copying to Notion, I'll remove it and let Notion generate one.

I also added comments about using IDE extensions like Markdown All in One to generate table of contents.

@BigLep BigLep requested a review from masih April 24, 2025 05:51
@BigLep
Copy link
Copy Markdown
Member Author

BigLep commented Apr 24, 2025

@masih : I don't think required to review again, but I did make a few changes as a result of incorporating feedback.

BigLep added 9 commits April 24, 2025 10:25
This makes it easier to see what content sections are being changed/added in future diffs.
…:\n- Safe tag to TipSetSelector options\n- Documentation about 200 epochs behind head placement\n- Updated comprehensive table of contents to include new sections
- Removed bad recommendations for handling when need consistent state
- Fixed mermaid diagram
- Made clear this doc isn't the permanent home
Fixed formatting errors.
Added docs about the table of contents.
@BigLep BigLep force-pushed the docs/v2-api-safe-tag branch from ef44d3c to 254f791 Compare April 24, 2025 17:37
@BigLep BigLep enabled auto-merge (squash) April 24, 2025 17:43
@BigLep BigLep merged commit 9bf8977 into master Apr 24, 2025
94 checks passed
@BigLep BigLep deleted the docs/v2-api-safe-tag branch April 24, 2025 17:47
@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to 🎉 Done in FilOz Apr 24, 2025
@github-project-automation github-project-automation Bot moved this from In review to Done in F3 Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip/changelog This change does not require CHANGELOG.md update

Projects

Status: Done
Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

3 participants